﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace JaxaraRnD.Models.Objects
{
    public class Order
    {
        [Key]
        public virtual int Id { get; set; }

        [Required]
        [StringLength(160, ErrorMessage = "*required")]
        [DataType(DataType.Text)]
        [Display(Name = "Order Issue Date: ")]
        public virtual string IssueDate { get; set; }
        public virtual Staff Staff { get; set; }
        public virtual IList<Product> Products { get; set; }

        public Order()
        {
            this.Products = new List<Product>();
        }
    }
}